{% extends "FOSUserBundle::layout.html.twig" %}
{% block title %}Connexion{% endblock %}
{% block fos_user_content %}
{% if error %}
    <div>{{ error|trans({}, 'FOSUserBundle') }}</div>
{% endif %}
<div class="container">
    <form action="{{ path("fos_user_security_check") }}" method="post" class="form-signin clearfix">
        <h2 class="form-signin-heading">Connexion</h2>
        <input type="hidden" name="_csrf_token" value="{{ csrf_token }}" />

        <label for="username">{{ 'security.login.username'|trans({}, 'FOSUserBundle') }}</label>
        <input type="text" id="username" name="_username" value="{{ last_username }}" required="required" />

        <label for="password">{{ 'security.login.password'|trans({}, 'FOSUserBundle') }}</label>
        <input type="password" id="password" name="_password" required="required" />

        <input type="submit" id="_submit" name="_submit" value="{{ 'security.login.submit'|trans({}, 'FOSUserBundle') }}" class="btn btn-large btn-success pull-right" />
        <span class="clearfix"></span>
    </form>
</div>
                    
{% endblock fos_user_content %}
